What is difference between mysql_connect and mysql_pconnect? Anonymous User430913-Jun-2011phpphp Updated on 24-Sep-2020
Anonymous User
13-Jun-2011mysql_connect opens up a database connection every time a page is loaded. mysql_pconnect opens up a
connection, and keeps it open across multiple requests.
mysql_pconnect uses less resources, because it does not need to establish a database connection every
time a page is loaded.